Skip to content

Conversation

@ggodlewski
Copy link

This PR allow to run MC on rpi zero 2w, running debian 13.

See https://github.com/ggodlewski/MeshCore/blob/linux/variants/linux/README.md for instruction and remarks.

I have RPI with POW + 2 * SX1262 running both MC and MT at the same time.

Resolves: #619

@ggodlewski ggodlewski changed the base branch from main to dev November 21, 2025 18:11
@Cisien
Copy link

Cisien commented Nov 25, 2025

Nice! I look forward to this!

#if defined(NRF52_PLATFORM)
return _fs->open(fname, FILE_O_WRITE);
#elif defined(RP2040_PLATFORM)
#elif defined(RP2040_PLATFORM) || defined(ARCH_PORTDUINO)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it maybe time to move fs access either to the board abstraction, or to its own abstraction so we can avoid all of the platform checks in the main code? @ripplebiz ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also have a look at this one: https://github.com/meshcore-dev/MeshCore/pull/1137/files/53d53fbb34f578b1bbcdfa86a3b4f8d9d8b3eb16#diff-37ca67c35b6bde867acedc3db6bb9eab58c5533e69de348a1688383af4f1645fR67

I added config to linux board. It would be useful to have config in any board. Currently examples are still using defines for node name, position, etc.

I didn't touch it because it would be rude to alter so many files in the first PR ;)


void MyMesh::dumpLogFile() {
#if defined(RP2040_PLATFORM)
#if defined(RP2040_PLATFORM) || defined(ARCH_PORTDUINO)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we name this PORTDUINO_PLATFORM to be more in line with the other defines?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for native Linux devices (i.e. Pi Zero 2)

2 participants